<?php


namespace core\utils;


class WsUtil
{
    static function encode($cmd,$data)
    {
        return json_encode([
            'cmd' => $cmd,
            'data' => $data,
        ], JSON_UNESCAPED_UNICODE);
    }
}